@extends('newAdmin.layout.main')

@section('content')
    <div class="x-nav">
      <span class="layui-breadcrumb">
        <a href="">首页</a>
        <a href="">网站配置</a>
        <a>
          <cite>配置分类</cite>
        </a>
      </span>
        <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
            <i class="layui-icon" style="line-height:30px">ဂ 刷新</i>
        </a>
    </div>
    <div class="x-body">
        <div class="layui-inline">
            <form action="{{url('backstage/settinglist')}}" class="layui-form layui-col-md12 x-so" style="margin-bottom: 0" method="get">
                <input type="text" name="keywords"  placeholder="请输入配置名" autocomplete="off" class="layui-input">
                <button class="layui-btn" lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
            </form>
        </div>
        <table class="layui-table">
            <thead>
            <tr>
                <th>ID</th>
                <th>配置名称</th>
                <th>识别码</th>
                <th>配置值</th>
                <th>操作</th></tr>
            </thead>
            <tbody>
            @foreach($list as $v)
                <tr>
                    <td>{{$v->id}}</td>
                    <td>{{$v->name}}</td>
                    <td>{{$v->action}}</td>
                    <td>{{$v->value}}</td>
                    <td class="td-manage">
                        <a onclick="x_admin_show('添加配置','{{url("backstage/editsetting/{$v['id']}")}}')" title="编辑配置" href="javascript:;">
                            <i class="layui-icon font-24">&#xe642;</i>
                        </a>
                    </td>
                </tr>
            @endforeach
            </tbody>
        </table>
        <div class="page">
            {{$list->links()}}
        </div>
    </div>
@endsection
